package com.eksframework.commons.core.converter;

/**
 * RadixConverter
 *
 * @author: chenfenghai
 * @version: 1.0
 * @date: 2020-04-27 17:36
 * @blame Team
 */
public class RadixConverter<T> extends AbstractObjectConverter<T> {

    private int radix = 10;

    /**
     * Constructs an instance with the value present.
     *
     * @param object convert value
     */
    protected RadixConverter(T object) {
        super(object);
    }

    /**
     * Constructs an instance with the value present.
     *
     * @param object convert value
     * @param radix the radix to be used while parsing {@code s}.
     */
    protected RadixConverter(T object, int radix) {
        super(object);
        this.radix = radix;
    }
}
